package com.weimall.pojo;

import java.util.ArrayList;
import java.util.List;

public class GgCxtjExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public GgCxtjExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCzybmIsNull() {
            addCriterion("CZYBM is null");
            return (Criteria) this;
        }

        public Criteria andCzybmIsNotNull() {
            addCriterion("CZYBM is not null");
            return (Criteria) this;
        }

        public Criteria andCzybmEqualTo(String value) {
            addCriterion("CZYBM =", value, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmNotEqualTo(String value) {
            addCriterion("CZYBM <>", value, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmGreaterThan(String value) {
            addCriterion("CZYBM >", value, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmGreaterThanOrEqualTo(String value) {
            addCriterion("CZYBM >=", value, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmLessThan(String value) {
            addCriterion("CZYBM <", value, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmLessThanOrEqualTo(String value) {
            addCriterion("CZYBM <=", value, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmLike(String value) {
            addCriterion("CZYBM like", value, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmNotLike(String value) {
            addCriterion("CZYBM not like", value, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmIn(List<String> values) {
            addCriterion("CZYBM in", values, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmNotIn(List<String> values) {
            addCriterion("CZYBM not in", values, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmBetween(String value1, String value2) {
            addCriterion("CZYBM between", value1, value2, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmNotBetween(String value1, String value2) {
            addCriterion("CZYBM not between", value1, value2, "czybm");
            return (Criteria) this;
        }

        public Criteria andBbIsNull() {
            addCriterion("BB is null");
            return (Criteria) this;
        }

        public Criteria andBbIsNotNull() {
            addCriterion("BB is not null");
            return (Criteria) this;
        }

        public Criteria andBbEqualTo(String value) {
            addCriterion("BB =", value, "bb");
            return (Criteria) this;
        }

        public Criteria andBbNotEqualTo(String value) {
            addCriterion("BB <>", value, "bb");
            return (Criteria) this;
        }

        public Criteria andBbGreaterThan(String value) {
            addCriterion("BB >", value, "bb");
            return (Criteria) this;
        }

        public Criteria andBbGreaterThanOrEqualTo(String value) {
            addCriterion("BB >=", value, "bb");
            return (Criteria) this;
        }

        public Criteria andBbLessThan(String value) {
            addCriterion("BB <", value, "bb");
            return (Criteria) this;
        }

        public Criteria andBbLessThanOrEqualTo(String value) {
            addCriterion("BB <=", value, "bb");
            return (Criteria) this;
        }

        public Criteria andBbLike(String value) {
            addCriterion("BB like", value, "bb");
            return (Criteria) this;
        }

        public Criteria andBbNotLike(String value) {
            addCriterion("BB not like", value, "bb");
            return (Criteria) this;
        }

        public Criteria andBbIn(List<String> values) {
            addCriterion("BB in", values, "bb");
            return (Criteria) this;
        }

        public Criteria andBbNotIn(List<String> values) {
            addCriterion("BB not in", values, "bb");
            return (Criteria) this;
        }

        public Criteria andBbBetween(String value1, String value2) {
            addCriterion("BB between", value1, value2, "bb");
            return (Criteria) this;
        }

        public Criteria andBbNotBetween(String value1, String value2) {
            addCriterion("BB not between", value1, value2, "bb");
            return (Criteria) this;
        }

        public Criteria andXhIsNull() {
            addCriterion("XH is null");
            return (Criteria) this;
        }

        public Criteria andXhIsNotNull() {
            addCriterion("XH is not null");
            return (Criteria) this;
        }

        public Criteria andXhEqualTo(Integer value) {
            addCriterion("XH =", value, "xh");
            return (Criteria) this;
        }

        public Criteria andXhNotEqualTo(Integer value) {
            addCriterion("XH <>", value, "xh");
            return (Criteria) this;
        }

        public Criteria andXhGreaterThan(Integer value) {
            addCriterion("XH >", value, "xh");
            return (Criteria) this;
        }

        public Criteria andXhGreaterThanOrEqualTo(Integer value) {
            addCriterion("XH >=", value, "xh");
            return (Criteria) this;
        }

        public Criteria andXhLessThan(Integer value) {
            addCriterion("XH <", value, "xh");
            return (Criteria) this;
        }

        public Criteria andXhLessThanOrEqualTo(Integer value) {
            addCriterion("XH <=", value, "xh");
            return (Criteria) this;
        }

        public Criteria andXhIn(List<Integer> values) {
            addCriterion("XH in", values, "xh");
            return (Criteria) this;
        }

        public Criteria andXhNotIn(List<Integer> values) {
            addCriterion("XH not in", values, "xh");
            return (Criteria) this;
        }

        public Criteria andXhBetween(Integer value1, Integer value2) {
            addCriterion("XH between", value1, value2, "xh");
            return (Criteria) this;
        }

        public Criteria andXhNotBetween(Integer value1, Integer value2) {
            addCriterion("XH not between", value1, value2, "xh");
            return (Criteria) this;
        }

        public Criteria andXmIsNull() {
            addCriterion("XM is null");
            return (Criteria) this;
        }

        public Criteria andXmIsNotNull() {
            addCriterion("XM is not null");
            return (Criteria) this;
        }

        public Criteria andXmEqualTo(String value) {
            addCriterion("XM =", value, "xm");
            return (Criteria) this;
        }

        public Criteria andXmNotEqualTo(String value) {
            addCriterion("XM <>", value, "xm");
            return (Criteria) this;
        }

        public Criteria andXmGreaterThan(String value) {
            addCriterion("XM >", value, "xm");
            return (Criteria) this;
        }

        public Criteria andXmGreaterThanOrEqualTo(String value) {
            addCriterion("XM >=", value, "xm");
            return (Criteria) this;
        }

        public Criteria andXmLessThan(String value) {
            addCriterion("XM <", value, "xm");
            return (Criteria) this;
        }

        public Criteria andXmLessThanOrEqualTo(String value) {
            addCriterion("XM <=", value, "xm");
            return (Criteria) this;
        }

        public Criteria andXmLike(String value) {
            addCriterion("XM like", value, "xm");
            return (Criteria) this;
        }

        public Criteria andXmNotLike(String value) {
            addCriterion("XM not like", value, "xm");
            return (Criteria) this;
        }

        public Criteria andXmIn(List<String> values) {
            addCriterion("XM in", values, "xm");
            return (Criteria) this;
        }

        public Criteria andXmNotIn(List<String> values) {
            addCriterion("XM not in", values, "xm");
            return (Criteria) this;
        }

        public Criteria andXmBetween(String value1, String value2) {
            addCriterion("XM between", value1, value2, "xm");
            return (Criteria) this;
        }

        public Criteria andXmNotBetween(String value1, String value2) {
            addCriterion("XM not between", value1, value2, "xm");
            return (Criteria) this;
        }

        public Criteria andFhIsNull() {
            addCriterion("FH is null");
            return (Criteria) this;
        }

        public Criteria andFhIsNotNull() {
            addCriterion("FH is not null");
            return (Criteria) this;
        }

        public Criteria andFhEqualTo(String value) {
            addCriterion("FH =", value, "fh");
            return (Criteria) this;
        }

        public Criteria andFhNotEqualTo(String value) {
            addCriterion("FH <>", value, "fh");
            return (Criteria) this;
        }

        public Criteria andFhGreaterThan(String value) {
            addCriterion("FH >", value, "fh");
            return (Criteria) this;
        }

        public Criteria andFhGreaterThanOrEqualTo(String value) {
            addCriterion("FH >=", value, "fh");
            return (Criteria) this;
        }

        public Criteria andFhLessThan(String value) {
            addCriterion("FH <", value, "fh");
            return (Criteria) this;
        }

        public Criteria andFhLessThanOrEqualTo(String value) {
            addCriterion("FH <=", value, "fh");
            return (Criteria) this;
        }

        public Criteria andFhLike(String value) {
            addCriterion("FH like", value, "fh");
            return (Criteria) this;
        }

        public Criteria andFhNotLike(String value) {
            addCriterion("FH not like", value, "fh");
            return (Criteria) this;
        }

        public Criteria andFhIn(List<String> values) {
            addCriterion("FH in", values, "fh");
            return (Criteria) this;
        }

        public Criteria andFhNotIn(List<String> values) {
            addCriterion("FH not in", values, "fh");
            return (Criteria) this;
        }

        public Criteria andFhBetween(String value1, String value2) {
            addCriterion("FH between", value1, value2, "fh");
            return (Criteria) this;
        }

        public Criteria andFhNotBetween(String value1, String value2) {
            addCriterion("FH not between", value1, value2, "fh");
            return (Criteria) this;
        }

        public Criteria andZ1IsNull() {
            addCriterion("Z1 is null");
            return (Criteria) this;
        }

        public Criteria andZ1IsNotNull() {
            addCriterion("Z1 is not null");
            return (Criteria) this;
        }

        public Criteria andZ1EqualTo(String value) {
            addCriterion("Z1 =", value, "z1");
            return (Criteria) this;
        }

        public Criteria andZ1NotEqualTo(String value) {
            addCriterion("Z1 <>", value, "z1");
            return (Criteria) this;
        }

        public Criteria andZ1GreaterThan(String value) {
            addCriterion("Z1 >", value, "z1");
            return (Criteria) this;
        }

        public Criteria andZ1GreaterThanOrEqualTo(String value) {
            addCriterion("Z1 >=", value, "z1");
            return (Criteria) this;
        }

        public Criteria andZ1LessThan(String value) {
            addCriterion("Z1 <", value, "z1");
            return (Criteria) this;
        }

        public Criteria andZ1LessThanOrEqualTo(String value) {
            addCriterion("Z1 <=", value, "z1");
            return (Criteria) this;
        }

        public Criteria andZ1Like(String value) {
            addCriterion("Z1 like", value, "z1");
            return (Criteria) this;
        }

        public Criteria andZ1NotLike(String value) {
            addCriterion("Z1 not like", value, "z1");
            return (Criteria) this;
        }

        public Criteria andZ1In(List<String> values) {
            addCriterion("Z1 in", values, "z1");
            return (Criteria) this;
        }

        public Criteria andZ1NotIn(List<String> values) {
            addCriterion("Z1 not in", values, "z1");
            return (Criteria) this;
        }

        public Criteria andZ1Between(String value1, String value2) {
            addCriterion("Z1 between", value1, value2, "z1");
            return (Criteria) this;
        }

        public Criteria andZ1NotBetween(String value1, String value2) {
            addCriterion("Z1 not between", value1, value2, "z1");
            return (Criteria) this;
        }

        public Criteria andZ2IsNull() {
            addCriterion("Z2 is null");
            return (Criteria) this;
        }

        public Criteria andZ2IsNotNull() {
            addCriterion("Z2 is not null");
            return (Criteria) this;
        }

        public Criteria andZ2EqualTo(String value) {
            addCriterion("Z2 =", value, "z2");
            return (Criteria) this;
        }

        public Criteria andZ2NotEqualTo(String value) {
            addCriterion("Z2 <>", value, "z2");
            return (Criteria) this;
        }

        public Criteria andZ2GreaterThan(String value) {
            addCriterion("Z2 >", value, "z2");
            return (Criteria) this;
        }

        public Criteria andZ2GreaterThanOrEqualTo(String value) {
            addCriterion("Z2 >=", value, "z2");
            return (Criteria) this;
        }

        public Criteria andZ2LessThan(String value) {
            addCriterion("Z2 <", value, "z2");
            return (Criteria) this;
        }

        public Criteria andZ2LessThanOrEqualTo(String value) {
            addCriterion("Z2 <=", value, "z2");
            return (Criteria) this;
        }

        public Criteria andZ2Like(String value) {
            addCriterion("Z2 like", value, "z2");
            return (Criteria) this;
        }

        public Criteria andZ2NotLike(String value) {
            addCriterion("Z2 not like", value, "z2");
            return (Criteria) this;
        }

        public Criteria andZ2In(List<String> values) {
            addCriterion("Z2 in", values, "z2");
            return (Criteria) this;
        }

        public Criteria andZ2NotIn(List<String> values) {
            addCriterion("Z2 not in", values, "z2");
            return (Criteria) this;
        }

        public Criteria andZ2Between(String value1, String value2) {
            addCriterion("Z2 between", value1, value2, "z2");
            return (Criteria) this;
        }

        public Criteria andZ2NotBetween(String value1, String value2) {
            addCriterion("Z2 not between", value1, value2, "z2");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}